<?php
namespace app\manage\model;

use think\Model;
use think\Cache;
use think\facade\Request;

class EntityModel extends Model{
	protected $table = 'ly_entity';

    public function del(){
        if(!request()->isAjax()) return '非法提交';

        $param = input('post.');
        if(!$param) return '提交失败';

        $delRes = $this->where('id',$param['id'])->update(['status'=>-1]);
        if(!$delRes) return '删除失败';

        //添加操作日志
        model('Actionlog')->actionLog(session('manage_username'),'删除发行机构：'.$param['id'],1);

        return 1;
    }
}
